def yanghui(n):
    a = []
    for i in range(n):
        a.append(1)
            for j in  range(i-1):
                a[i-j-1] = a[i-j-1] + a[i-j-2]
            yield a

for i in yanghui(10):
    print(i)
